package siruna.WE.core.model.VisualBlocks;

import java.util.List;

import org.apache.http.MethodNotSupportedException;

import siruna.WE.core.Constants;
import siruna.WE.core.Constants.InputTypes;
import siruna.WE.core.model.VisualBlock;

public class ListImpl extends VisualBlock {

	private List list;

	@Override
	public InputTypes getType(String s) {
		if (s.equals("entries")) {

			return Constants.InputTypes.list;

		}
		return null;
	}

	@Override
	public void setInput(String att, byte[] bytes) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setInput(String att, List list) {
		this.list = list;
	}

	@Override
	public byte[] toByteArray() throws MethodNotSupportedException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List toList() throws MethodNotSupportedException {
		return list;
	}

	@Override
	public String toHTML() {
		// TODO Auto-generated method stub
		return null;
	}

}
